// export const parsingItems = function (row, name, type) {
//   return
// }

// 服务费汇总
export const tableFuwufeihuizongThead = [
  {
    title: '',
    key: 'null',
    width: 200,
    slot: 'leftnav',
    fixed: 'left'
  },
  {
    title: '社保服务费',
    key: 'SISFcompanyTotalAmt'
  },
  // {
  //   title: '服务费',
  //   key: 'SFcompanyTotalAmt'
  // },
  {
    title: '公积金服务费',
    key: 'CPFSFcompanyTotalAmt'
  },
  {
    title: '商保服务费',
    key: 'CISFcompanyTotalAmt'
  },
  {
    title: '薪资服务费',
    key: 'SSFcompanyTotalAmt'
  },
  {
    title: '服务费合计',
    // key: 'totalAmt'
    key: 'SFcompanyTotalAmt'
  }
]

// 服务费明细
export const tableFuwufeimingxiThead = [
  // {
  //   type: 'selection',
  //   width: 60,
  //   align: 'center'
  // },
  {
    title: '姓名',
    key: 'employeeName',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 200
  },
  {
    title: '服务月份',
    key: 'month',
    render: (h, params) => {
      const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
      const text = params.row.year + '' + month
      return h('span', text)
    }
  },
  {
    title: '社保服务费',
    key: 'SISFcompanyFeeamt'
  },
  {
    title: '公积金服务费',
    key: 'CPFSFcompanyFeeamt',
    width: 120
  },
  {
    title: '商保服务费',
    key: 'CISFcompanyFeeamt'
  },
  {
    title: '薪资服务费',
    key: 'SSFcompanyFeeamt'
  },
  {
    title: '服务费合计',
    key: 'totalAmt'
  }
]

// 薪资明细
export const tableXinzimingxiThead = [
  {
    title: '姓名',
    key: 'name',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'identityCardNO',
    width: 200
  },
  {
    title: '工资月份',
    key: 'salaryMonth',
    width: 120,
    render: (h, params) => {
      const text = params.row.salaryMonth?params.row.salaryMonth.substring(0, 7):'-'
      return h('span', text)
    }
  },
  {
    title: '税款所属月份',
    key: 'taxMonth',
    width: 140,
    render: (h, params) => {
      const text = params.row.taxMonth?params.row.taxMonth.substring(0, 7) : '-'
      return h('span', text)
    }
  },
  {
    title: '计薪起止时间',
    key: 'salaryRange',
    width: 200
  },
  {
    title: '工资发放日期',
    key: 'payDate',
    width: 120,
    render: (h, params) => {
      const text = params.row.payDate.substring(0, 10)
      return h('span', text)
    }
  },
  {
    title: '收入类型',
    key: 'incomeTypeName',
    width: 200
  },
  {
    title: '开户行',
    key: 'bankName',
    width: 200
  },
  {
    title: '卡号',
    key: 'bankAccountNo',
    width: 200
  },
  {
    title: '手机号码',
    key: 'phone',
    width: 200
  },
  {
    title: '应发工资总额',
    key: 'shouldSalaryTotal',
    width: 120
  },
  {
    title: '社保扣除',
    key: 'socialSecurityDeduct',
    width: 120
  },
  {
    title: '公积金扣除',
    key: 'providentFundDeduct',
    width: 120
  },
  {
    title: '专项附加扣除',
    minWidth: 150,
    key: 'specialDeduct'
  },
  {
    title: '其他扣除',
    minWidth: 150,
    key: 'otherDeduct'
  },
  {
    title: '个税扣除',
    key: 'incomeDeduct',
    width: 120
  },
  {
    title: '手续费',
    key: 'serviceCharge',
    width: 120
  },
  {
    title: '税后扣除',
    minWidth: 120,
    key: 'afterTaxDeduct'
  },
  {
    title: '累计抵扣',
    minWidth: 150,
    key: 'historyDeduct'
  },
  {
    title: '实发工资总额',
    key: 'realSalaryTotal',
    width: 120
  },
  {
    title: '备注',
    minWidth: 150,
    key: 'description'
  }
]

// 商保明细
export const tableShangbaomingxiThead = [
  {
    title: '姓名',
    key: 'employeeName',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 200
  },
  {
    title: '参保编号',
    key: 'insureNo'
  },
  {
    title: '参保月份',
    key: 'month',
    render: (h, params) => {
      const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
      const text = params.row.year + '' + month
      return h('span', text)
    }
  },
  {
    title: '保险金额',
    key: 'totalAmt'
  }
]

// 公积金明细
export const tableGongjijinmingxiThead = [
  {
    title: '姓名',
    key: 'employeeName',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 200
  },
  {
    title: '参保编号',
    key: 'insureNo',
    width: 200
  },
  {
    title: '参保月份',
    key: 'month',
    width: 200,
    render: (h, params) => {
      const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
      const text = params.row.year + '' + month
      return h('span', text)
    }
  },
  {
    title: '单位',
    key: 'company',
    width: 300,
    align: 'center',
    children: [
      {
        title: '基数',
        key: 'ProvidentFundcompanyFeebaseAmt',
        width: 100
      },
      {
        title: '比例',
        key: 'ProvidentFundcompanyFeerate',
        width: 100,
        render: (h, params) => {
          const text = params.row.ProvidentFundcompanyFeerate ? params.row.ProvidentFundcompanyFeerate + '%' : ''
          return h('span', text)
        }
      },
      {
        title: '金额',
        key: 'ProvidentFundcompanyFeeamt',
        width: 100
      }
    ]
  },
  {
    title: '个人',
    key: 'employeeFee',
    width: 300,
    align: 'center',
    children: [
      {
        title: '基数',
        key: 'ProvidentFundemployeeFeebaseAmt',
        width: 100
      },
      {
        title: '比例',
        key: 'ProvidentFundemployeeFeerate',
        width: 100,
        render: (h, params) => {
          const text = params.row.ProvidentFundemployeeFeerate ? params.row.ProvidentFundemployeeFeerate + '%' : ''
          return h('span', text)
        }
      },
      {
        title: '金额',
        key: 'ProvidentFundemployeeFeeamt',
        width: 100
      }
    ]
  },
  {
    title: '公积金合计',
    key: 'totalAmt',
    width: 120
  }
]

// 社保明细
export const tableShebaomingxiThead = [
  {
    title: '姓名',
    key: 'employeeName',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 200
  },
  {
    title: '参保编号',
    key: 'insureNo',
    width: 200
  },
  {
    title: '参保月份',
    key: 'month',
    width: 200,
    render: (h, params) => {
      const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
      const text = params.row.year + '' + month
      return h('span', text)
    }
  },
  {
    title: '养老保险',
    key: 'Pension',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'CompanyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'PensioncompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'PensioncompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.PensioncompanyFeerate ? params.row.PensioncompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'PensioncompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'PensionemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'PensionemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.PensionemployeeFeerate ? params.row.PensionemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'PensionemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '医疗保险',
    key: 'MedicalCare',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'MedicalCarecompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'MedicalCarecompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.MedicalCarecompanyFeerate ? params.row.MedicalCarecompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'MedicalCarecompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'MedicalCareemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'MedicalCareemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.MedicalCareemployeeFeerate ? params.row.MedicalCareemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'MedicalCareemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '失业保险',
    key: 'Unemployment',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'UnemploymentcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'UnemploymentcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.UnemploymentcompanyFeerate ? params.row.UnemploymentcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'UnemploymentcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'UnemploymentemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'UnemploymentemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.UnemploymentemployeeFeerate ? params.row.UnemploymentemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'UnemploymentemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '工伤保险',
    key: 'InjuryOnTheJob',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'InjuryOnTheJobcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'InjuryOnTheJobcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.InjuryOnTheJobcompanyFeerate ? params.row.InjuryOnTheJobcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'InjuryOnTheJobcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'InjuryOnTheJobemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'InjuryOnTheJobemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.InjuryOnTheJobemployeeFeerate ? params.row.InjuryOnTheJobemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'InjuryOnTheJobemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '生育保险',
    key: 'Birth',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'BirthcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'BirthcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.BirthcompanyFeerate ? params.row.BirthcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'BirthcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'BirthemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'BirthemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.BirthemployeeFeerate ? params.row.BirthemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'BirthemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '大病医疗',
    key: 'SeriousIllness',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'SeriousIllnesscompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'SeriousIllnesscompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.SeriousIllnesscompanyFeerate ? params.row.SeriousIllnesscompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'SeriousIllnesscompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'SeriousIllnessemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'SeriousIllnessemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.SeriousIllnessemployeeFeerate ? params.row.SeriousIllnessemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'SeriousIllnessemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '残保金',
    key: 'DisabledPersonsSecurityFund',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'DisabledPersonsSecurityFundcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'DisabledPersonsSecurityFundcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.DisabledPersonsSecurityFundcompanyFeerate ? params.row.DisabledPersonsSecurityFundcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'DisabledPersonsSecurityFundcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'DisabledPersonsSecurityFundemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'DisabledPersonsSecurityFundemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.DisabledPersonsSecurityFundemployeeFeerate ? params.row.DisabledPersonsSecurityFundemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'DisabledPersonsSecurityFundemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '门诊医疗',
    key: 'OutpatientDepartment',
    align: 'center',
    children: [
      {
        title: '单位',
        key: 'companyFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'OutpatientDepartmentcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'OutpatientDepartmentcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.OutpatientDepartmentcompanyFeerate ? params.row.OutpatientDepartmentcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'OutpatientDepartmentcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'OutpatientDepartmentemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'OutpatientDepartmentemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.OutpatientDepartmentemployeeFeerate ? params.row.OutpatientDepartmentemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'OutpatientDepartmentemployeeFeeamt',
            width: 100
          }
        ]
      }
    ]
  },
  {
    title: '单位合计',
    key: 'companyTotalAmt',
    width: 120,
    align: 'center'
  },
  {
    title: '个人合计',
    key: 'employeeTotalAmt',
    width: 120,
    align: 'center'
  },
  {
    title: '总合计',
    key: 'totalAmt',
    width: 120,
    align: 'center'
  }
]

// 社保汇总
export const tableShebaohuizongThead = [
  // {
  //   title: '',
  //   key: 'null',
  //   width: 200,
  //   slot: 'leftnav',
  //   fixed: 'left'
  // },
  {
    title: '类型',
    key: 'type',
    width: 120,
    fixed: 'left'
  },
  {
    title: '养老保险',
    key: 'PensionAmt',
    width: 120
  },
  {
    title: '医疗保险',
    key: 'MedicalCareAmt',
    width: 120
  },
  {
    title: '失业保险',
    key: 'UnemploymentAmt',
    width: 120
  },
  {
    title: '工伤保险',
    key: 'InjuryOnTheJobAmt',
    width: 120
  },
  {
    title: '生育保险',
    key: 'BirthAmt',
    width: 120
  },
  {
    title: '大病医疗',
    key: 'SeriousIllnessAmt',
    width: 120
  },
  {
    title: '残保金',
    key: 'DisabledPersonsSecurityFundAmt',
    width: 120
  },
  {
    title: '门诊医疗',
    key: 'OutpatientDepartmentAmt',
    width: 120
  },
  {
    title: '月合计',
    key: 'SocialInsuranceSumAmt',
    width: 120
  }
]

// 汇总报表
export const tableHuizongbaobiaoThead = [
  {
    title: '类型',
    key: 'type',
    width: 120,
    fixed: 'left'
  },
  {
    title: '养老保险',
    key: 'PensionAmt',
    width: 120
  },
  {
    title: '医疗保险',
    key: 'MedicalCareAmt',
    width: 120
  },
  {
    title: '失业保险',
    key: 'UnemploymentAmt',
    width: 120
  },
  {
    title: '工伤保险',
    key: 'InjuryOnTheJobAmt',
    width: 120
  },
  {
    title: '生育保险',
    key: 'BirthAmt',
    width: 120
  },
  {
    title: '大病医疗',
    key: 'SeriousIllnessAmt',
    width: 120
  },
  {
    title: '残保金',
    key: 'DisabledPersonsSecurityFundAmt',
    width: 120
  },
  {
    title: '门诊医疗',
    key: 'OutpatientDepartmentAmt',
    width: 120
  },
  {
    title: '社保小计',
    key: 'SocialInsuranceSumAmt',
    width: 120
  },
  {
    title: '公积金',
    key: 'ProvidentFundAmt',
    width: 120
  },
  {
    title: '商保',
    key: 'CommercialInsuranceAmt',
    width: 120
  },
  {
    title: '工资',
    key: 'SalaryAmt',
    width: 120
  },
  {
    title: '个税',
    key: 'IncomeTaxAmt',
    width: 120
  },
  {
    title: '手续费',
    key: 'HandlingFeeAmt',
    width: 120
  },
  {
    title: '社保服务费',
    key: 'SISFAmt',
    width: 120
  },
  {
    title: '公积金服务费',
    key: 'CPFSFAmt',
    width: 120
  },
  {
    title: '商保服务费',
    key: 'CISFAmt',
    width: 120
  },
  {
    title: '薪资服务费',
    key: 'SSFAmt',
    width: 120
  },
  {
    title: '服务费小计',
    key: 'SFAmt',
    width: 120
  },
  {
    title: '总计',
    key: 'AllTotalAmt',
    width: 120
  }
]

// 明细汇总
export const tableMingxihuizongThead = [
  {
    title: '姓名',
    key: 'employeeName',
    width: 100
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    width: 200
  },
  {
    title: '社保',
    key: 'si',
    align: 'center',
    children: [
      {
        title: '参保编号',
        key: 'siGroupinsureNo',
        width: 200
      },
      {
        title: '参保月份',
        key: 'month',
        width: 200,
        render: (h, params) => {
          const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
          const text = params.row.year == 0 ? '-' : params.row.year + '' + month
          return h('span', text)
        }
      },
      {
        title: '养老保险',
        key: 'Pension',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'CompanyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'PensioncompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'PensioncompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.PensioncompanyFeerate ? params.row.PensioncompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'PensioncompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'PensionemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'PensionemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.PensionemployeeFeerate ? params.row.PensionemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'PensionemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '医疗保险',
        key: 'MedicalCare',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'MedicalCarecompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'MedicalCarecompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.MedicalCarecompanyFeerate ? params.row.MedicalCarecompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'MedicalCarecompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'MedicalCareemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'MedicalCareemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.MedicalCareemployeeFeerate ? params.row.MedicalCareemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'MedicalCareemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '失业保险',
        key: 'Unemployment',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'UnemploymentcompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'UnemploymentcompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.UnemploymentcompanyFeerate ? params.row.UnemploymentcompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'UnemploymentcompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'UnemploymentemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'UnemploymentemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.UnemploymentemployeeFeerate ? params.row.UnemploymentemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'UnemploymentemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '工伤保险',
        key: 'InjuryOnTheJob',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'InjuryOnTheJobcompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'InjuryOnTheJobcompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.InjuryOnTheJobcompanyFeerate ? params.row.InjuryOnTheJobcompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'InjuryOnTheJobcompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'InjuryOnTheJobemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'InjuryOnTheJobemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.InjuryOnTheJobemployeeFeerate ? params.row.InjuryOnTheJobemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'InjuryOnTheJobemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '生育保险',
        key: 'Birth',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'BirthcompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'BirthcompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.BirthcompanyFeerate ? params.row.BirthcompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'BirthcompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'BirthemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'BirthemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.BirthemployeeFeerate ? params.row.BirthemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'BirthemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '大病医疗',
        key: 'SeriousIllness',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'SeriousIllnesscompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'SeriousIllnesscompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.SeriousIllnesscompanyFeerate ? params.row.SeriousIllnesscompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'SeriousIllnesscompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'SeriousIllnessemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'SeriousIllnessemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.SeriousIllnessemployeeFeerate ? params.row.SeriousIllnessemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'SeriousIllnessemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '残保金',
        key: 'DisabledPersonsSecurityFund',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'DisabledPersonsSecurityFundcompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'DisabledPersonsSecurityFundcompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.DisabledPersonsSecurityFundcompanyFeerate ? params.row.DisabledPersonsSecurityFundcompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'DisabledPersonsSecurityFundcompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'DisabledPersonsSecurityFundemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'DisabledPersonsSecurityFundemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.DisabledPersonsSecurityFundemployeeFeerate ? params.row.DisabledPersonsSecurityFundemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'DisabledPersonsSecurityFundemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '门诊医疗',
        key: 'OutpatientDepartment',
        align: 'center',
        children: [
          {
            title: '单位',
            key: 'companyFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'OutpatientDepartmentcompanyFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'OutpatientDepartmentcompanyFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.OutpatientDepartmentcompanyFeerate ? params.row.OutpatientDepartmentcompanyFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'OutpatientDepartmentcompanyFeeamt',
                width: 100
              }
            ]
          },
          {
            title: '个人',
            key: 'employeeFee',
            width: 300,
            align: 'center',
            children: [
              {
                title: '基数',
                key: 'OutpatientDepartmentemployeeFeebaseAmt',
                width: 100
              },
              {
                title: '比例',
                key: 'OutpatientDepartmentemployeeFeerate',
                width: 100,
                render: (h, params) => {
                  const text = params.row.OutpatientDepartmentemployeeFeerate ? params.row.OutpatientDepartmentemployeeFeerate + '%' : ''
                  return h('span', text)
                }
              },
              {
                title: '金额',
                key: 'OutpatientDepartmentemployeeFeeamt',
                width: 100
              }
            ]
          }
        ]
      },
      {
        title: '单位合计',
        key: 'siGroupcompanyTotalAmt',
        width: 120,
        align: 'center'
      },
      {
        title: '个人合计',
        // key: 'employeeTotalAmt',
        key: 'siGroupemployeeTotalAmt',
        width: 120,
        align: 'center'
      },
      {
        title: '社保合计',
        key: 'siGrouptotalAmt',
        width: 120,
        align: 'center'
      }
    ]
  },
  {
    title: '公积金',
    key: 'cpf',
    align: 'center',
    children: [
      {
        title: '参保编号',
        key: 'cpfGroupinsureNo',
        width: 200
      },
      {
        title: '参保月份',
        key: 'month',
        width: 200,
        render: (h, params) => {
          const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
          const text = params.row.year == 0 ? '-' : params.row.year + '' + month
          return h('span', text)
        }
      },
      {
        title: '单位',
        key: 'company',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'ProvidentFundcompanyFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'ProvidentFundcompanyFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.ProvidentFundcompanyFeerate ? params.row.ProvidentFundcompanyFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'ProvidentFundcompanyFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '个人',
        key: 'employeeFee',
        width: 300,
        align: 'center',
        children: [
          {
            title: '基数',
            key: 'ProvidentFundemployeeFeebaseAmt',
            width: 100
          },
          {
            title: '比例',
            key: 'ProvidentFundemployeeFeerate',
            width: 100,
            render: (h, params) => {
              const text = params.row.ProvidentFundemployeeFeerate ? params.row.ProvidentFundemployeeFeerate + '%' : ''
              return h('span', text)
            }
          },
          {
            title: '金额',
            key: 'ProvidentFundemployeeFeeamt',
            width: 100
          }
        ]
      },
      {
        title: '公积金合计',
        key: 'cpfGrouptotalAmt',
        width: 120
      }
    ]
  },
  {
    title: '商保',
    key: 'ci',
    align: 'center',
    children: [
      {
        title: '参保编号',
        key: 'ciGroupinsureNo',
        width: 120
      },
      {
        title: '参保月份',
        key: 'month',
        render: (h, params) => {
          const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
          const text = params.row.year == 0 ? '-' : params.row.year + '' + month
          return h('span', text)
        },
        width: 120
      },
      {
        title: '保险金额',
        key: 'ciGrouptotalAmt',
        width: 120
      }
    ]
  },
  {
    title: '服务费',
    key: 'si',
    align: 'center',
    children: [
      {
        title: '服务月份',
        key: 'month',
        width: 120,
        render: (h, params) => {
          const month = params.row.month < 10 ? '0' + params.row.month : '' + params.row.month
          const text = params.row.year + '' + month
          return h('span', text)
        }
      },
      {
        title: '社保服务费',
        key: 'SISFcompanyFeebaseAmt',
        width: 120
      },
      {
        title: '公积金服务费',
        key: 'CPFSFcompanyFeebaseAmt',
        width: 120
      },
      {
        title: '商保服务费',
        key: 'CISFcompanyFeebaseAmt',
        width: 120
      },
      {
        title: '薪资服务费',
        key: 'SSFcompanyFeebaseAmt',
        width: 120
      },
      {
        title: '服务费合计',
        key: 'sfGrouptotalAmt',
        width: 120
      }
    ]
  },
  {
    title: '总合计',
    key: 'totalAmt',
    align: 'center',
    width: 200
  }
]
